package com.zynn.api.yinian.zuul;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author jerry-liqi
 *
 * 对外提供api的路由 zuul启动
 */
@EnableFeignClients(basePackages = {"com.zynn.feign.module"})
@ComponentScan(basePackages = {"com.zynn.api.yinian.zuul", "com.zynn.common.core", "com.zynn.message.queue"})
@EnableZuulProxy
@SpringCloudApplication
public class ZynnApiYinianZuulApplication {

    public static void main(String[] args) {
        SpringApplication.run(ZynnApiYinianZuulApplication.class, args);
    }

}

